package net.metashare.grah.logic

/**
 * Grah is a notion produced by metashare.net
 * User: dsherema
 * Date: May 1, 2010
 * Time: 4:55:24 PM
 *
 */

class IsA implements Predicate {
  def Class clazz

  def IsA(Class clazz) {
    this.clazz = clazz;
  }

  def boolean apply(Object object) {
    return clazz.isAssignableFrom(object.getClass())
  }


}